package com.learn.xueer.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseSectionQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.learn.xueer.R
import com.learn.xueer.data.model.bean.SectionBean
import com.learn.xueer.data.model.bean.StudyHistoryResponse

class StudyHistoryItemAdapter(data: MutableList<StudyHistoryResponse>) :
    BaseQuickAdapter<StudyHistoryResponse, BaseViewHolder>(
        R.layout.item_history_content_item, data
    ) {
    override fun convert(helper: BaseViewHolder, item: StudyHistoryResponse) {
        helper.setText(R.id.tv_title, item.title)
        helper.setText(R.id.tv_score, "${item.score}分")
        helper.setText(R.id.tv_date, item.formatter_time)
    }


}